package com.spring.logging;

/**
 * @author liyuncong
 * @version 1.0
 * @file Log
 * @brief Log
 * @details Log
 * @date 2022-12-08
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2022-12-08               liyuncong          Created
 */
public interface Log {
    boolean isFatalEnabled();

    boolean isErrorEnabled();

    boolean isWarnEnabled();

    boolean isInfoEnabled();

    boolean isDebugEnabled();

    boolean isTraceEnabled();

    void fatal(Object message);

    void fatal(Object message, Throwable throwable);

    void error(Object message);

    void error(Object message, Throwable throwable);

    void warn(Object message);

    void warn(Object message, Throwable throwable);

    void info(Object message);

    void info(Object message, Throwable throwable);

    void debug(Object message);

    void debug(Object message, Throwable throwable);

    void trace(Object message);

    void trace(Object message, Throwable throwable);
}
